package com.loongtech.bi.entity.system;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "bi_advcost")
public class EntityAdvCost implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private int id;
    // 游戏名称
    @Transient
    private String gameName;
    // 游戏id
    @Column(columnDefinition = "int(11)")
    private Integer gameId;
    @Column(columnDefinition = "varchar(32) NOT NULL default ''")
    private String ldate;
    @Column(columnDefinition = "varchar(32) NOT NULL default ''")
    private String platform;
    @Column(columnDefinition = "varchar(32) NOT NULL default ''")
    private String agent;
    @Column(columnDefinition = "varchar(32) NOT NULL default ''")
    private String channelName;
    @Column(columnDefinition = "varchar(32) NOT NULL default ''")
    private String cost;
    @Column(columnDefinition = "varchar(32) NOT NULL default ''")
    private String rebate;
    @Column(columnDefinition = "varchar(32) NOT NULL default ''")
    private String discount;
    @Column(columnDefinition = "varchar(32) NOT NULL default ''")
    private String roi;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLdate() {
        return ldate;
    }

    public void setLdate(String ldate) {
        this.ldate = ldate;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public Integer getGameId() {
        return gameId;
    }

    public void setGameId(Integer gameId) {
        this.gameId = gameId;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getRebate() {
        return rebate;
    }

    public void setRebate(String rebate) {
        this.rebate = rebate;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public String getRoi() {
        return roi;
    }

    public void setRoi(String roi) {
        this.roi = roi;
    }

    @Override
    public String toString() {
        return "EntityAdvCost{" +
                "id=" + id +
                ", gameName='" + gameName + '\'' +
                ", gameId=" + gameId +
                ", ldate='" + ldate + '\'' +
                ", platform='" + platform + '\'' +
                ", agent='" + agent + '\'' +
                ", channelName='" + channelName + '\'' +
                ", cost='" + cost + '\'' +
                ", rebate='" + rebate + '\'' +
                ", discount='" + discount + '\'' +
                ", roi='" + roi + '\'' +
                '}';
    }

    public static class K {
        public static final String id = "id";
        public static final String ldate = "ldate";
        public static final String platform = "platform";
        public static final String agent = "agent";
        public static final String channelName = "channelName";
        public static final String cost = "cost";
        public static final String rebate = "rebate";
        public static final String discount = "discount";
        public static final String roi = "roi";

        public static java.util.List<String> toList() {
            java.util.List<String> list = new java.util.ArrayList<>();
            list.add(id);
            list.add(ldate);
            list.add(platform);
            list.add(agent);
            list.add(channelName);
            list.add(cost);
            list.add(rebate);
            list.add(discount);
            list.add(roi);
            return list;
        }
    }
}
